package org.gpp.proj1.robot.part.emissor;

import java.util.Map;

import com.jme.scene.Node;

public class Emissor {
	
	private static final long serialVersionUID = -907802306680720174L;
	
	private Map<String, Node> emissorNodes;

	private String name;
	
	public Emissor(String name, Map<String, Node> emissorNodes) {
		this.name = name;
		this.emissorNodes = emissorNodes;
	}
	
	public String getName() {
		return this.name;
	}
	
	public Node getEmissorNode( String parentName ) {
		return emissorNodes.get( parentName );
	}

	@Override
	protected Object clone() throws CloneNotSupportedException {
		return new Emissor( this.getName(), emissorNodes );
	}
}